//
//  UIView+JwHolder.h
//  JwPack
//
//  Created by 陈警卫 on 2024-08-22.
//

#import <UIKit/UIKit.h>
#import <Masonry/Masonry.h>

NS_ASSUME_NONNULL_BEGIN

extern NSString *GV_UIViewJwHolder_holdClassName;

extern NSString *GV_JwHoldView_holdImgName;
extern NSString *GV_JwHoldView_textColorString;
extern NSString *GV_JwHoldView_btnColorString;

@interface JwHoldView : UIView

@property (nonatomic, strong) UIImageView *iconImgV;
@property (nonatomic, strong) UILabel *tipL;
@property (nonatomic, strong) UIButton *sureB;

@property (nonatomic, copy) void(^didSureBAction)(void);

/// 设置数据 (继承者使用)
- (void)setupValue:(id)value;

@end

@interface UIView (JwHolder)

@property (nonatomic, strong, nullable) JwHoldView *jw_holdView;


- (void)jw_setupHoldViewWithImageName:(NSString *)imageName text:(nullable NSString *)text btnText:(nullable NSString *)btnText;

- (void)jw_removeHoldView;

- (void)jw_setupHoldViewWithImageName:(NSString *)imageName text:(NSString *)text;

- (void)jw_setupHoldViewWithImageName:(NSString *)imageName btnText:(NSString *)btnText;

- (void)jw_setupHoldView;

- (void)jw_setupHoldViewWithText:(NSString *)text;

- (void)jw_setupHoldViewWithBtnText:(NSString *)btnText;

- (void)jw_setupHoldViewWithText:(NSString *)text btnText:(NSString *)btnText;

@end

NS_ASSUME_NONNULL_END
